package bean;

import java.util.Collection;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import psc.model.base.transacao.Extrato;
import facade.FacadeExtrato;

@ManagedBean
@SessionScoped
public class ExtratoBean {

	public ExtratoBean() {
		extrato = new Extrato();
		facadeExtrato = new FacadeExtrato();
	}

	private Extrato extrato;

	public Extrato getExtrato() {
		return extrato;
	}

	public void setExtrato(Extrato extrato) {
		this.extrato = extrato;
	}

	private FacadeExtrato facadeExtrato;

	public FacadeExtrato getFacadeExtrato() {
		return facadeExtrato;
	}

	public void setFacadeExtrato(FacadeExtrato facadeExtrato) {
		this.facadeExtrato = facadeExtrato;
	}

	public Collection<Extrato> consultarExtrato() {
		return this.facadeExtrato.getExtrato(extrato);
	}

}
